﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Surcharge
{
    class Un
    {
        static void Main(string[] args)
        {
            int a = 15;
            Console.WriteLine("Création : a = " + a);
            Un obj = new Un(a);
            obj.f();
            Console.WriteLine("Fonction f() : a = " + obj.a);
            obj.f(2);
            Console.WriteLine("Fonction f(2) : a = " + obj.a);
            Console.WriteLine("Fonction f(50, 'z') : a = " + obj.f(50, 'z'));
        }
        public int a;
        public Un(int b)
        { a = b; }
        public void f()
        { a *= 10; }
        public void f(int x)
        { a += 10 * x; }
        public int f(int x, char y)
        {
            a = x + (int)y;
            return a;
        }
    }
}
